#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
	int num[10] = { 0 };

	for (int i = 0; i < 10; i++)
		scanf("%d", &num[i]);
	for (int i = 1; i < 10; i++)
		if (num[0] < num[i])
			num[0] = num[i];
	printf("%d\n", num[0]);
	return 0;
}